package com.ibeeking.found.upms.b.rest.controller.v1;

import com.ibeeking.found.upms.b.rest.service.ICsPermissionService;
import com.ibeeking.found.upms.service.common.vo.CsPermissionListVO;
import com.ibeeking.nematos.constants.enums.OperateLogTypeEnum;
import com.ibeeking.nematos.log.annotation.Log;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName PermissionController控制器
 * @Description
 * @Author ibeeking
 * @Date 2020-12-01 18:15
 **/
@RestController
@RequestMapping("/b/csPermission/v1")
public class CsPermissionController {

    @Resource
    private ICsPermissionService csPermissionServiceImpl;

    @Log(logType = OperateLogTypeEnum.QUERY, describe = "查询权限菜单树")
    @GetMapping(value = "/queryCsList")
    public List<CsPermissionListVO> queryCsList() {
        return csPermissionServiceImpl.queryCsList();
    }
}
